Skip to content

chore: fix naming typos and clean up CurrentMcpServer#64

Merged
jpicklyk merged 1 commit intomainfrom
chore/code-quality-cleanup
Mar 8, 2026
Merged

chore: fix naming typos and clean up CurrentMcpServer#64
jpicklyk merged 1 commit intomainfrom
chore/code-quality-cleanup

Conversation

@jpicklyk
Copy link
Owner

@jpicklyk jpicklyk commented Mar 7, 2026

Summary

  • Fix roleCounToJson typo in QueryItemsTool (→ roleCountToJson)
  • Rename mapRowToWorkItem/mapRowToWorkItemSafetoWorkItem/toWorkItemOrNull in SQLiteWorkItemRepository to follow Kotlin naming conventions
  • Replace hardcoded "13 tools" in server instructions with dynamic toolCount/toolNames
  • Extract registerCommonCleanup() to deduplicate shutdown registration between stdio/HTTP transports
  • Add server.onClose handler to HTTP transport for DB shutdown parity with stdio

Test Results

All tests pass (./gradlew :current:test — BUILD SUCCESSFUL)

Review

Pure cleanup — no behavioral changes. All renamed methods are private, so no external API impact. Dynamic tool count ensures instructions string stays accurate as tools are added/removed.

MCP Items

  • 87c6ba67 — Fix naming inconsistencies and typos across codebase
  • 33edb39f — Clean up CurrentMcpServer — shutdown dedup, hardcoded count, error handling

🤖 Generated with Claude Code

- Fix roleCounToJson typo → roleCountToJson in QueryItemsTool
- Rename mapRowToWorkItem/mapRowToWorkItemSafe → toWorkItem/toWorkItemOrNull
  in SQLiteWorkItemRepository to follow Kotlin naming conventions
- Replace hardcoded "13 tools" in server instructions with dynamic
  toolCount/toolNames derived from the registered tool list
- Extract registerCommonCleanup() to deduplicate shutdown action
  registration between stdio and HTTP transports
- Add server.onClose handler to HTTP transport for DB shutdown parity
  with stdio transport

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jpicklyk jpicklyk merged commit 3f7348e into main Mar 8, 2026
2 checks passed
@jpicklyk jpicklyk deleted the chore/code-quality-cleanup branch March 8, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant